<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script>
			var imgs = ["1.jpg","2.jpg","3.jpg","4.jpg","5.jpg"];
			var index = 0;
			function addImg() {				
				// let d = document.getElementById("pic");
								if(index==imgs.length){
									return;
								}
						pic.innerHTML += "<img src='./img/" + imgs[index++] + "'/>";
					index = index % ar.length;						
			}
		</script>
	</head>
	<body>
		<input type="button" value="点击加图片" onclick="addImg()"/>
		<div id="pic"></div>
	</body>
</html>
